<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<div class="button_area">
	<a class="button submit">保存</a>&nbsp;&nbsp;
	<a href="order/customer.backFromOrder.action" class="button">返回</a>
</div>
<s:form method="post" action="log.save" namespace="/order">
	<tr>
		<td>
			<table class="form_table">
				<s:textfield name="log.appreYear" id="log_appreYear" label="年份"></s:textfield>
				<s:textarea name="log.appreComments" id="log_appreComments" rows="20" cssStyle="width:600px"
					label="内容"></s:textarea>
			</table>
		</td>




	</tr>
</s:form>

<script type="text/javascript">
<!--

  $(document).ready(function(){

  	$('#log_appreYear').datepicker({dateFormat:'yy'});
      $("form").validate({
    	errorLabelContainer: $("div.error"),
    	focusInvalid: true,
    	rules: {           //定义验证规则,其中属性名为表单的name属性  
        	'log.appreYear': {  
        		required: true
              	}
            
           
            
            
         }, 
         messages: {       //自定义验证消息  
         	'log.appreYear': {  
            	required: "年份是必需的<br>"           
         	}
         }
    });
  });
 

});


//-->
</script>

